import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/basematerialwidgetsdemo.dart';
import 'package:myflutterproject/utils/overScrollBehavior.dart';

class FittedBoxDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('FittedBox'),
          centerTitle: true,
        ),
        body: Center(
            child: Container(
              width: 150,
              height: 100,
              color: Colors.blue,
              child: FittedBox(
                fit: BoxFit.fill,
                alignment: Alignment(0, 0),
                child: Container(
                  width: 30,
                  height: 30,
                  child: Image.asset('images/addpic.png'),
                ),
              ),
            ),
        ));
  }
}
